﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddStudent.aspx.cs" Inherits="Web.admin.BasicManage.students.AddStudent" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" >
        function CheckEmpty() {

            if ($(".class7").val() == "") {
                alert("学生姓名称为必填项，不允许为空");
                return false;
            }
            else if ($(".class8").val() == "") {
                alert("学号为必填项，不允许为空");
                return false;
            }
            else if ($(".class9").val() == "") {
                alert("用户名为必填项，不允许为空");
                return false;
            }
            else if ($(".class10").val() == "") {
                alert("密码为必填项，不允许为空");
                return false;
            }
            else
                return true;
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img  alt=""; src="../../images/main_hl.gif" /></td>
                        <td ><img alt=""; src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>学生管理</span></td>
                        <td><img alt=""; src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;基础数据管理&gt;学生管理</span>
            <div style="float:right; margin-right:5px;">
                    <a href="STU_List.aspx">返回学生列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>学生姓名</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxName" CssClass="class7" runat="server"></asp:TextBox>
                            <label>*</label>
                            <input type="hidden" id="ACAIDBOX" value="" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th>学号</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxCode" CssClass="class8"  runat="server"></asp:TextBox>
                            <label>*</label>                            
                        </td>
                    </tr>
                    <tr>
                        <th>用户名</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxUsm" CssClass="class9" runat="server"></asp:TextBox>   
                            <label>*</label>                         
                        </td>
                    </tr>
                    <tr>
                        <th>密码</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxPwd" CssClass="class10" runat="server"></asp:TextBox>   
                            <label>*</label>                         
                        </td>
                    </tr>
                    <tr>
                        <th>性别</th>
                        <td align="left">
                            <asp:RadioButton runat="server" ID="Gender_Male" GroupName="Gender" Checked="true" Text="男" />
                            <asp:RadioButton runat="server" ID="Gender_Femal" GroupName="Gender" Text="女" />                            
                        </td>
                    </tr>
                    <asp:ScriptManager ID="SM" runat="server" EnablePartialRendering="true">
                    </asp:ScriptManager>
                    <asp:UpdatePanel ID="Update" runat="server">
                        <ContentTemplate>
                            <tr>
                                <th>所属学院</th>
                                <td align="left">
                                    <asp:DropDownList ID="DDL_Academy" OnSelectedIndexChanged="DDL_AcademyChange" AutoPostBack="true" runat="server">
                                    </asp:DropDownList>                           
                                </td>
                            </tr>
                            <tr>
                                <th>所属班级</th>
                                <td>
                                    <asp:DropDownList ID="DDL_Classes" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    
                    <tr>
                        <th>年级</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxGrade" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                     
                    

                    <tr>
                        <th>校区</th>
                        <td align="left">
                            <asp:DropDownList runat="server" ID="DDL_Local">
                            </asp:DropDownList>                        
                        </td>
                    </tr>           
                    <tr>
                        <td></td>
                        <td align="left"><asp:Button ID="ButtonOK" OnClientClick="return CheckEmpty();" CssClass="btn_reset" runat="server" Text="保存" 
                                onclick="ButtonOK_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
     </div>
    </form>
</body>
</html>
